package com.dome.dao;

import java.util.List;

import com.dome.mapper.RoleMapper;
import com.dome.model.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class RoleDao {
	@Autowired
	private RoleMapper roleMapper;

	public void insertRoleWH(List<Role> roleBJ) {
		roleMapper.insertRoleWH(roleBJ);
	}

	public List<Role> selectRole(long id) {
		return roleMapper.selectRole(id);
	}

	public void deleteRoleWH(long id) {
		roleMapper.deleteRoleWH(id);
	}
}
